package com.yyy.dm.provider.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yyy.dm.dao.OrderLinkUserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OrderLinkUserProviderService {

    @Resource
    private OrderLinkUserMapper orderLinkUserMapper;

    public Integer rollbackOrderLinkUser(Long orderId){
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("orderId",orderId);
        return orderLinkUserMapper.delete(queryWrapper);
    }
}
